package com.juzi.xunhuan_dead;

public class JieShao {
    public static void main(String[] args) {
        System.out.println("=================\n" +
                "死循环\n" +
                "一直循环的执行下去，如果没有干预不会停止下来。\n" +
                "------------------------\n" +
                "写法\n" +
                "for(;;) {\n" +
                "    System.out.println(\"Hello World\");\n" +
                "}\n" +
                "// 经典做法\n" +
                "while(true) {\n" +
                "    System.out.println(\"Hello World\");\n" +
                "}\n" +
                "\n" +
                "do {\n" +
                "    System.out.println(\"Hello World\");\n" +
                "} while (true);\n" );
    }
}
